home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5256 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: dispatch.news.demon.net!demon!epma.demon.co.uk
  2. From: andy@epma.demon.co.uk (andy)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ---> AREXX File Deletion
  5. Date: Tue, 12 Mar 1996 00:09:22 GMT
  6. Message-ID: <858.6644T1153T2303@epma.demon.co.uk>
  7. References: <4hvakt$43r@mutt.mda.ca>
  8. NNTP-Posting-Host: epma.demon.co.uk
  9. X-NNTP-Posting-Host: epma.demon.co.uk
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  11.  
  12.  
  13. >This should be a quick and easy one....
  14.  
  15. >I want to be able to delete files from within AREXX, could someone
  16. >send me the code fragment I need to include? AREXX doesn't seem to
  17. >have deletion as a standard function, open and close but no delete.
  18.  
  19. Just use the AmigaDOS command, i.e.
  20.  
  21. --SNIP--
  22.  
  23. /*
  24.    Delete.rexx
  25.    Code to delete a file through ARexx
  26. */
  27.  
  28. ADDRESS 'COMMAND'                   /* This is not needed if run for CLI */
  29.  
  30. SAY 'Enter a file name to delete'
  31. PULL File$
  32.  
  33. 'Delete' File$
  34.  
  35. --SNIP--
  36.  
  37. If you have anymore questions just drop us a line.
  38.  
  39.  
  40. --
  41. +---------------------------------====#====-----------------------------+
  42. |              Andy Savage - Amiga Multimedia Programmer                |
  43. |   Amiga, Drumming, Eastenders, Hamster, Tarantino and Worms fanatic   |
  44. +---------------------------------====#====-----------------------------+
  45.  
  46.